
						<div class="secblock">
							<h4 class="sechead">My Account</h4>
							<div data-hook="account_summary">
  <dl id="user-info">

                            <div class="box-content">
                            	<div class="myacct-edit clearfix">
                            		<div class="myacct-label">
                            			<label>Email:</label>

                            		</div>
                            		<div class="myacct-field">
                            			<a><%= @user.email %></a>
                            		</div>
										

                            		<div class="myacct-edit-field">
																<%= link_to t('edit'), edit_account_path %>                            		
																</div>
                            	</div>
                            </div>
														</dl>
														</div>
						</div><!-- my account -->
						 <% unless current_user.has_role? "admin"%>

						<div data-hook="account_my_orders">

						<div class="secblock">
							<h4 class="sechead">My Orders</h4>
                            <div class="box-content">
	                            <div class="myorder">
															  <% if @orders.present? %>

	                            	<table cellpadding="0" cellspacing="0" class="grid-table">
	                            		<thead>
	                            			<tr>
		                              <th><%= t("order_number") %></th>
																<th><%= t("order_date") %></th>
																<th><%= t("status") %></th>
																<th><%= t("payment_state") %></th>
																<th><%= t("shipment_state") %></th>
																<th><%= t("total") %></th>
	                            			</tr>
	                            		</thead>
	                            		<tbody>
																	<% @orders.each do |order| %>
																	<tr>
		                            	   <td><%= link_to order.number, order_url(order) %></td>
																		<td><%=order.created_at.to_date%></td>
																		<td><%= t(order.state).titleize %></td>
																		<td><%= t("payment_states.#{order.payment_state}") if order.payment_state %></td>
																		<td><%= t("shipment_states.#{order.shipment_state}") if order.shipment_state %></td>
																		<td><%= number_to_currency order.total %></td>
	                            			</tr>             		
	                            	      <% end %>                            			
	                            		</tbody>
	                            	</table>
																<% else %>
																		<p><%= t(:you_have_no_orders_yet) %></p>
																	<% end %>

	                            </div>
                            </div>
						</div>
						</div>
   <% end %>

